<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .my1 {
            color: rgb(165, 22, 22);
        }
        #my2 {
            color: rgb(69, 216, 147);
        }
    </style>
   
    <!-- 链接式 -->
    <link rel="stylesheet" href="color.css">
</head>

<body>
    <h1>一级标题</h1>
    <h1 class="my1">一级标题</h1>
    <h1 id="my2">一级标题</h1>
    <h1 class="my3">一级标题</h1>
    <h1>一级标题</h1>
    <h2>二级标题</h2>
    <p>sdasdadasd</p>
</body>

</html>